/**
 * Created by shitao on 15/11/2.
 */
(function () {
    angular.module('my-tabs.controllers')
        .controller('exploreCtrl', exploreCtrl);
    exploreCtrl.$inject = ['$scope', 'exploreService', '$state', 'appService', 'md5', '$sce'];

    function exploreCtrl($scope, exploreService, $state) {
        console.log('exploreCtrl');
        var vm = this;
        vm.categories = exploreService.categories();
        vm.promotions = exploreService.promotions();
        vm.stores = exploreService.stores();

        vm.openStore = function (store) {
            $state.go('main.store', {storeId: store.id});
        };
    }
})();
